package com.example.siyun.service.impl.shouyeserviceimpl;

import com.example.siyun.mapper.shouyemapper.SyMapper;
import com.example.siyun.service.shouyeservice.SyService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Auther: 全
 * @Date: 2022/10/13 14:14
 * @Description:获取首页的数据
 */
@Service
public class SyServiceImpl implements SyService {
    @Autowired
    private SyMapper syMapper;
    /**
     * 获取上传视频的总条数
     * @return  返回上传视频的总条数
     */
    @Transactional
    @Override
    public Integer getspnum() {
        return syMapper.getspnum();
    }
    /**
     * 获取视频的中浏览数
     * @return  返回视频的中浏览数
     */
    @Transactional
    @Override
    public Integer getspllnum() {
        return syMapper.getspllnum();
    }
    /**
     * 获取视频的总收藏量
     * @return  返回视频的总收藏量
     */
    @Transactional
    @Override
    public Integer getspscl() {
        return syMapper.getspscl();
    }
    /**
     * 获取上传你视频视频的点赞量
     * @return  返回上传你视频视频的点赞量
     */
    @Transactional
    @Override
    public Integer getspzzl() {
        return syMapper.getspzzl();
    }
}
